package com.it.flowable.common.constants;

import java.util.Arrays;
import java.util.List;

/**
 * 请假流程专用
 */
public class BpmLeaveConstant {

    public static final String LEAVE_PROCESS_KEY = "advance-monitor-qj"; // 请假流程processKey

    public static final String LEAVE_APPLY = "101"; // 请假申请
    public static final String LEAVE_FIRST_APPROVE = "102"; // 一级审批
    public static final String LEAVE_SECOND_APPROVE = "103"; // 二级审批
    public static final String LEAVE_LEAVE_END = "000"; // 流程结束

    public static final String LEAVE_STATUS_INIT = "0"; // 初始态
    public static final String LEAVE_STATUS_ACCEPT = "1"; // 已接收
    public static final String LEAVE_STATUS_COMPLETE = "2"; // 已完成
    public static final String LEAVE_STATUS_TEMP = "3"; // 暂存
    public static final String LEAVE_STATUS_HANG_UP = "4"; // 挂起
    public static final String LEAVE_STATUS_CANCEL = "5"; // 注销
    public static final String LEAVE_STATUS_CANCEL_APPLY = "6"; // 取消申请

    /** 用户级别：0 普员；1 一级； 2 二级 */
    public static final String LEAVE_USER_LEVEL_0 = "0";
    public static final String LEAVE_USER_LEVEL_1 = "1";
    public static final String LEAVE_USER_LEVEL_2 = "2";

    public static final List<String> LEAVE_APPROVE_LIST = Arrays.asList(LEAVE_FIRST_APPROVE, LEAVE_SECOND_APPROVE);

}
